package xyz.chenyongpeng.orderproviderdubbo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import xyz.chenyongpeng.entity.ZsNearbyResources;
import xyz.chenyongpeng.orderproviderdubbo.mapper.ZsNearbyResourcesMapper;
import xyz.chenyongpeng.service.IZsNearbyResourcesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import xyz.chenyongpeng.to.NearbyResourceTo;

import java.util.List;

/**
 * <p>
 * 资源点附近的相关资源信息表 服务实现类
 * </p>
 *
 * @author chenyongpeng
 * @since 2018-12-10
 */
public class ZsNearbyResourcesService extends ServiceImpl<ZsNearbyResourcesMapper, ZsNearbyResources> implements IZsNearbyResourcesService {

    @Autowired
    private ZsNearbyResourcesMapper zsNearbyResourcesMapper;

    @Override
    public List<NearbyResourceTo> getRelevantList(String r_id) {
        return zsNearbyResourcesMapper.getRelevantList(r_id);
    }
}
